# dependency
# support <- base <- ds <- fa <- config <- init <- trans <- engine

aux_source_directory(. FUNNY_SRCS)

add_subdirectory(base)
add_subdirectory(config)
add_subdirectory(ds)
add_subdirectory(engine)
add_subdirectory(fa)
add_subdirectory(premise)
add_subdirectory(support/gc)
add_subdirectory(support/log)
add_subdirectory(trans)

add_executable(funny main.c)

target_link_libraries(funny support/log support/gc base ds fa premise config trans engine)

install(TARGETS funny RUNTIME DESTINATION funny/bin)
